package com.sky.service.impl;

import com.sky.domain.Clazz;
import com.sky.mapper.ClazzMapper;
import com.sky.service.ClazzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 尹稳健~
 * @version 1.0
 */
@Service
@Transactional
public class ClazzServiceImpl implements ClazzService {

    @Autowired
    private ClazzMapper clazzMapper;

    public List<Clazz> selectAll() {
        return clazzMapper.selectAll();
    }

    public List<Clazz> getClazzList(Clazz clazz) {
        return clazzMapper.getClazzList(clazz);
    }

    public Clazz findClazzByName(Clazz clazz) {
        return clazzMapper.findClazzByName(clazz);
    }

    public void editClazz(Clazz clazz) {
        clazzMapper.editClazz(clazz);
    }

    public void addClazz(Clazz clazz) {
        clazzMapper.addClazz(clazz);
    }

    public void deleteClazz(Integer[] ids) {
        clazzMapper.deleteClazz(ids);
    }
}
